package com.umeox.iqibla.qimi_app.base

import android.app.Application
import android.content.Context
import com.tencent.mmkv.MMKV
import com.umeox.watch.moto.dataservice.DataProvider

/**
 * Created by Rambo 2021/8/18
 * Describe:
 */
class BaseApp : Application() {

    companion object {
        private var appContext: Context? = null
        fun getContext(): Context {
            return appContext as Context
        }
    }



    override fun attachBaseContext(base: Context?) {
        super.attachBaseContext(base)
        appContext = this
    }

    override fun onCreate() {
        super.onCreate()
        MMKV.initialize(this)
        DataProvider.initialize(this)
    }
}